export default {
    'POST /api/userInfo': (req, res) => {
        const user = req.body;
        if (user.username === 'bangkkk' && user.password === 'bangbang666') {
            return res.json({
                code: 200,
                success_description: "登陆成功",
                success: true,
                data: {
                    username: "bangkkk",
                    password: "bangbang666",
                    realName: "邦邦邦",
                    id: "1427636745",
                    avatar: "https://video.codeseeding.com/image/default/AE03865608444CB389BA0334CD67F1AC-6-2.jpg",
                    address: ["肇庆市肇庆学院主校区翰墨池池底", "广州市南沙区区政府办公室厕所", "传火祭祀场", "不死聚落"],
                    accessToken: "qqqqqqqqqqqqqqqqqqqqqqq",
                    refreshToken: "wwwwwwwwwwwww",
                },

            })
        } else if (user.username !== 'bangkkk') {
            return res.json({
                code: 503,
                error_description: "登录失败，账户不存在",
                success: false,

            })
        } else if (user.username === 'bangkkk' && user.password !== 'bangbang666') {
            return res.json({
                code: 503,
                error_description: "登录失败，密码错误",
                success: false,

            })
        }
    },
    'GET /api/carouselList': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            data: [
                {
                    tittle: "8月来电好物季",
                    url: "https://img13.360buyimg.com/pop/s1180x940_jfs/t1/204538/27/418/100695/6110eb81E40c33891/98a22a2cf9021e4e.jpg.webp"
                },
                {
                    tittle: "联想拯救者手机",
                    url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/100019677428/FocusFullshop/CkRqZnMvdDEvMTg5ODU0LzM3LzEyMzMzLzM4MDk2My82MGU2OTU3Y0VkMDE4NzRiNS8zYjJmMzgyYjA1YTY0NTZiLnBuZxIJNC10eV8wXzU1MAI47ot6Qh8KG-iBlOaDs-aLr-aVkeiAheS6jOS7o-aJi-acuhAAQhMKD-S8mOaDoOS6q-S4jeWBnBABQhAKDOeri-WNs-aKoui0rRACQgoKBui2heWAvBAHWPTRjM30Ag/cr/s/q.jpg"
                },
                {
                    tittle: "PKPM安全计算软件",
                    url: "https://img13.360buyimg.com/pop/s1180x940_jfs/t1/190794/40/15567/57641/6102697fEae09d1dc/276df898373421f5.jpg.webp"
                },
                {
                    tittle: "小佩智能猫砂盆",
                    url: "https://imgcps.jd.com/img-cubic/creative_server_cia/v2/2000366/100014384286/FocusFullshop/CkRqZnMvdDEvMTg2MDIyLzM0LzEzMTk1LzI2MDE5OS82MGU2OTM1YkUxMzZlNmYzNi82ZjI2YTQxMWViOTY3YjQyLnBuZxIJMy10eV8wXzU0MAI47ot6QhMKD-Wwj-S9qeeMq-WOleaJgBAAQhAKDOa7oTE5OeWHjzEwMBABQhAKDOeri-WNs-aKoui0rRACQgoKBuWKm-iNkBAHWJ7Jycr0Ag/cr/s/q.jpg"
                },
                {
                    tittle: "新品上新",
                    url: "https://imgcps.jd.com/ling4/100018752514/5LiK5Lqs5pud6YCb5paw5ZOB/5paw5ZOB5LiK5paw/p-5bd8253082acdd181d02fa1b/a68daee4/cr/s/q.jpg"
                },
                {
                    tittle: "大码女装风格馆",
                    url: "https://imgcps.jd.com/ling4/10034506421901/5aSn56CB5aWz6KOF6aOO5qC86aaG/54OtOOavj-a7oTMwMOWHjzMw/p-5bd8253082acdd181d02fa3b/9b8d8401/cr/s/q.jpg"
                },
            ]
        })
    },
    'GET /api/categoryList': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            data: [
                {
                    name: '品牌',
                    tagList: ['小米（MI）', '荣耀（HONOR）', '华为（HUAWEI）', 'vivo', 'OPPO', '黑鲨', '一加', '三星（SAMSUNG）'
                        , '魅族（meizu）', 'Apple', '真我（realme）', '摩托罗拉（Motor...', '中兴（ZTE）', '联想（lenovo）', 'ROG', '努比亚（nubia）'],
                    checked: undefined
                },
                {
                    name: '功能',
                    tagList: ['超大字体', '超大音量', 'SOS功能', '语音命令', '语音识别(文字语音互转)', '远程协助', '极简桌面模式'],
                    checked: undefined
                },
                {
                    name: '系统',
                    tagList: ['Android', 'EMUI 11.0（基于Android 10）', 'HarmonyOS 2', 'IOS', '其他OS'],
                    checked: undefined
                },
                {
                    name: 'CPU型号',
                    tagList: ['骁龙855 plus', '麒麟990', '麒麟990 5G', '骁龙768', 'GExynos980', 'MTK Helio G85', 'MT6873', '紫光展锐', '骁龙865 plus', '天玑1000 plus'],
                    checked: undefined
                }
            ]
        })
    },
    'GET /api/index': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            goodsDetail: {
                id: "123456",
                name: "Apple iPhone 11 (A2223) 128GB 黑色 移动联通电信4G手机 双卡双待",
                price: 5299.00,
                discount: 4799.00,
                couponList: ["九折"],
                wight: 0.368,
                colorList: [
                    {
                        color: "黑色",
                        imgUrlList: [
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/199862/27/4519/178919/6124c719E097f0bd6/e69e1313009b7a7f.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/148767/39/18017/86358/5fd32ff0E5ca41721/d885f7c401dfa557.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/142574/9/17878/51690/5fd34693E1d6142e2/d2d35afca393e566.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/136123/20/19495/50331/5fd34697E35ee8d84/9e542233d66da7c1.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/133295/19/19538/138037/5fd3469bE861a6bd9/f8b640b7d732a93c.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/141270/6/17695/85325/5fd3469eE061669e3/4ace6b708fd72215.jpg",
                            "https://img12.360buyimg.com/n1/s450x450_jfs/t1/153813/18/9324/54747/5fd346a0Ecede298c/672e726c375828a6.jpg"
                        ]
                    },
                    {
                        color: "白色",
                        imgUrlList: [
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/178616/28/20703/176483/6124c73cEebbf678e/4d51252b54f1784d.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/153457/35/9377/80509/5fd3300bEa14f6b0f/f60a95a9f1731200.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/149047/25/18194/49137/5fd346c5Ee424ff8d/ffcc4ee8cc62905f.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/142613/5/18084/50114/5fd346c7E24cb8b6b/1f1271b3bfed34b6.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/139707/40/18012/138037/5fd346caEa8be9e7a/88da23dcff9d772a.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/141930/5/18182/85325/5fd346cfEc024158b/df6fe498b38221c1.jpg",
                            "https://img10.360buyimg.com/n1/s450x450_jfs/t1/151150/22/10290/53487/5fd346d1E7b178c03/8787b6d210763244.jpg"
                        ]
                    },
                    {
                        color: "蓝色",
                        imgUrlList: [
                            "https://img14.360buyimg.com/n1/s546x546_jfs/t1/159065/20/14949/30011/60598fd7E471f44f8/1975166176fe4d6a.jpg",
                            "https://img14.360buyimg.com/n0/jfs/t1/170216/27/12160/62620/604b0e6bE097bf0ca/d9c412e191c97425.jpg",
                            "https://img14.360buyimg.com/n0/jfs/t1/156085/20/15222/73870/604b0e6bEc637cc7b/297d39f5e0f83552.jpg",
                            "https://img14.360buyimg.com/n0/jfs/t1/169052/25/12063/53300/604b0e6bE5f8b9d34/628da2750e511be0.jpg",]
                    }
                ],
                RAMList: [{name: "64GB"}, {name: "128GB"}, {name: "256GB"}],
                typeList: [{name: "公开版"}, {name: "AirPods套装"}, {name: "快充套装"}, {name: "官方标配"}],
                setList: [{name: "优惠套装1"}, {name: "优惠套装2"}, {name: "优惠套装3"}, {name: "优惠套装4"}, {name: "优惠套装5"}, {name: "优惠套装6"}],
                serviceList: [{name: "换休无忧月付版"}, {name: "换休无忧年付版"}, {name: "原厂电池换新"}, {name: "2年碎屏保修"}, {name: "2年电池换新"}, {name: "黑科技充电宝"}]
            }
        })
    },
    'GET /api/detail': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            detailHtml: '<a href="https://h5.m.jd.com/babelDiy/Zeus/3ubbmY6yVAE8DzXXTsMR3iNr4xQo/index.html?babelChannel=ttt3">' +
                '<img src="https://img13.360buyimg.com/cms/jfs/t1/190060/10/19956/51080/6124bc02E7fa893a1/304d18248fc877e7.jpg" style="width: 700px"></img>' +
                '</a>' +
                '<img src="https://img10.360buyimg.com/cms/jfs/t1/192940/32/18878/1851294/611f2103E0286926a/9c440d9c784811a2.jpg"style="width: 700px"></img>' +
                '<img src="https://img14.360buyimg.com/cms/jfs/t1/199214/6/4018/1121043/611f2102Ed9a2ecec/3623168ee6a5fc8d.jpg"style="width: 700px"></img>'
        })
    },
    'GET /api/spec': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            specTable: [
                {specName: '主体', propName: '产品名称', propValue: 'iPhone 11'},
                {specName: '主体', propName: '首销日期', propValue: '以官网信息为准'},
                {specName: '主体', propName: '品牌', propValue: 'Apple'},
                {specName: '主体', propName: '上市年份', propValue: '2019年'},
                {specName: '主体', propName: '上市月份', propValue: '9月'},
                {specName: '主体', propName: '入网型号', propValue: 'A2223'},

                {specName: '基本信息', propName: '机身宽度（mm）', propValue: '75.7'},
                {specName: '基本信息', propName: '运营商标志或内容', propValue: '无标志或内容'},
                {specName: '基本信息', propName: '机身材质', propValue: '玻璃搭配铝金属设计'},
                {specName: '基本信息', propName: '机身材质分类', propValue: '玻璃后盖'},
                {specName: '基本信息', propName: '机身重量（g）', propValue: '194'},
                {specName: '基本信息', propName: '机身厚度(mm)', propValue: '8.3'},
                {specName: '基本信息', propName: '机身长度（mm）', propValue: '150.9'},

                {specName: '主芯片', propName: 'CPU品牌', propValue: '以官网信息为准'},

                {specName: '屏幕', propName: '屏幕材质类型', propValue: 'LCD'},
                {specName: '屏幕', propName: '屏幕像素密度', propValue: '326'},
                {specName: '屏幕', propName: '主屏幕尺寸', propValue: '6.1英寸'},

                {specName: '后置摄像头', propName: '后摄主摄光学防抖', propValue: '支持光学防抖'},
                {specName: '后置摄像头', propName: '闪光灯', propValue: '其他闪光灯'},
                {specName: '后置摄像头', propName: '拍照特点', propValue: '数码变焦；光学防抖；HDR'},
                {specName: '后置摄像头', propName: '后摄主摄光圈', propValue: 'f/2.4'},

                {specName: '前置摄像头', propName: '拍照特点', propValue: '人像模式；HDR'},
                {specName: '前置摄像头', propName: '前摄主摄光圈', propValue: 'f/2.2'},

                {specName: '电池信息', propName: '电池可拆卸', propValue: '不可拆卸'},
                {specName: '电池信息', propName: '无线充电', propValue: '支持无线充电'},
                {specName: '电池信息', propName: '充电器', propValue: '其他'},

                {specName: '网络支持', propName: 'SIM卡类型', propValue: 'Nano SIM'},
                {
                    specName: '网络支持',
                    propName: '3G/2G网络',
                    propValue: '3G TD-SCDMA(移动)；3G WCDMA(联通)；3G CDMA2000(电信)；2G GSM(移动/联通)；2G CDMA(电信)'
                },
                {specName: '网络支持', propName: '4G网络', propValue: '4G FDD-LTE(联通)；4G TD-LTE(移动)；4G FDD-LTE(联通、电信)'},
                {specName: '网络支持', propName: '网络频率(2G/3G)', propValue: '以官网信息为准'},
                {specName: '网络支持', propName: '双卡机类型', propValue: '双卡双待'},
                {specName: '网络支持', propName: '最大支持SIM卡数量', propValue: '2个'},
                {specName: '网络支持', propName: '5G网络', propValue: '不支持5G'},

                {specName: '数据接口', propName: '耳机接口类型', propValue: 'Lightning'},
                {specName: '数据接口', propName: 'NFC/NFC模式', propValue: '支持（读卡器模式）'},
                {specName: '数据接口', propName: '充电接口类型', propValue: 'Lightning（iPhone）'},
                {specName: '数据接口', propName: '数据传输接口', propValue: '其他'},

                {specName: '手机特性', propName: '三防标准', propValue: 'IP68'},
                {specName: '手机特性', propName: '生物识别', propValue: '人脸识别'},

                {specName: '辅助功能', propName: '常用功能', propValue: '重力感应；语音识别'},

                {specName: '包装清单', propName: '物品列表', propValue: 'iPhone*1、USB-C 转闪电连接线*1、资料*1'},
            ]
        })
    },
    'GET /api/service': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            jdInfo: [
                {
                    name: '厂家服务',
                    value: '本商品质保周期为1年质保，在此时间范围内可提交维修申请，具体请以厂家服务为准。 如因质量问题或故障，凭厂商维修中心或特约维修点的质量检测证明，享受7日内退货，15日内换货，15日以上在质保期内享受免费保修等三包服务！\n' +
                        '(注:如厂家在商品介绍中有售后保障的说明,则此商品按照厂家说明执行售后保障服务。)'
                },
                {
                    name: '京东承诺', value: '京东平台卖家销售并发货的商品，由平台卖家提供发票和相应的售后服务。请您放心购买！\n' +
                        '注：因厂家会在没有任何提前通知的情况下更改产品包装、产地或者一些附件，本司不能确保客户收到的货物与商城图片、产地、附件说明完全一致。只能确保为原厂正货！并且保证与当时市场上同样主流新品一致。若本商城没有及时更新，请大家谅解！'
                },
                {name: '正品行货', value: '京东商城向您保证所售商品均为正品行货，京东自营商品开具机打发票或电子发票。'},
                {name: '无忧退货', value: '客户购买京东自营商品7日内（含7日，自客户收到商品之日起计算），在保证商品完好的前提下，可无理由退货。（部分商品除外，详情请见各商品细则）'},
            ],
            priceInfo: [
                {name: '京东价：', value: '京东价为商品的销售价，是您最终决定是否购买商品的依据。'},
                {
                    name: '划线价：',
                    value: '商品展示的划横线价格为参考价，并非原价，该价格可能是品牌专柜标价、商品吊牌价或由品牌供应商提供的正品零售价（如厂商指导价、建议零售价等）或其他真实有依据的价格；由于地区、时间的差异性和市场行情波动，品牌专柜标价、商品吊牌价等可能会与您购物时展示的不一致，该价格仅供您参考。'
                },
                {
                    name: '折扣：',
                    value: '如无特殊说明，折扣指销售商在原价、或划线价（如品牌专柜标价、商品吊牌价、厂商指导价、厂商建议零售价）等某一价格基础上计算出的优惠比例或优惠金额；如有疑问，您可在购买前联系销售商进行咨询。'
                },
                {name: '异常问题：', value: '商品促销信息以商品详情页“促销”栏中的信息为准；商品的具体售价以订单结算页价格为准；如您发现活动商品售价或促销信息有异常，建议购买前先联系销售商咨询。'},
            ]
        })
    },
    'GET /api/comments': (req, res) => {
        return res.json({
            code: 200,
            msg: "",
            success: true,
            sorts: ['时间顺序', '默认顺序'],
            chart: {
                series: [131, 1.9, 3.6],
                chartOptions: {
                    colors: ['#67C23A', '#E6A23C', '#F56C6C'],
                    labels: ['好评', '中评', '差评'],
                }
            },
            tags: [
                {name: '清晰度高', count: '3075'},
                {name: '反应超快', count: '2814'},
                {name: '漂亮大方', count: '1757'},
                {name: '色彩饱满', count: '823'},
                {name: '待机给力', count: '764'},
                {name: '性能一流', count: '750'},
                {name: '手感一流', count: '687'},
                {name: '音质上乘', count: '484'},
                {name: '照片清晰', count: '100'},
                {name: '内存充足', count: '94'},
            ],
            commentList: [
                {
                    userInfo: {
                        username: 'Bang',
                        avatarUrl: 'https://storage.360buyimg.com/i.imageUpload/6a645f3434643263396665616535303431353539363233363630303534_sma.jpg'
                    },
                    rate: 3.1,
                    date: '2021-09-03 10:03',
                    likes: 198,
                    comments: 3889,
                    content: {
                        text: '老人小孩都很爱吃',
                        imgUrlList: [
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/186328/19/17344/101851/610fed94Ea93c8bdd/3cd9d6e86188ec88.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/190513/5/17286/96500/610fed95E9c40a4de/f5e415e30f3bc457.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/179919/17/18300/111860/610fed95E0b478a97/155e0fbd2a7f944a.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/202116/17/401/86969/610fed96E1adac864/af4dcb0d48db8780.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/192153/39/17522/129475/610fed97E64476f11/86206eae0ff981fa.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/193765/3/17329/94623/610fed98E8232ffba/97a6754a3ebc06ba.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/203367/37/405/73057/610fed98E917a53c4/95b28983596825e1.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/191679/39/17305/104465/610fed99E6e5e814d/b4085b826f4273f2.jpg",
                        ],
                        videoUrl: 'https://jvod.300hu.com/vod/product/300da0a1-61fd-4377-b3fd-672f65d9e8e3/395e0ae43c934494a6c69b8651821ba6.mp4?source=2&h265=h265/18799/de87578da42f4927b2c437ba027129fa.mp4'
                    }
                },
                {
                    userInfo: {
                        username: 'Bang123',
                        avatarUrl: 'https://storage.360buyimg.com/i.imageUpload/6a645f3533663765646537323131373431363139363138303630323231_sma.jpg'
                    },
                    rate: 5,
                    date: '2021-09-03 10:03',
                    likes: 198,
                    comments: 3889,
                    content: {
                        text: '敏感肌用了都说好',
                        imgUrlList: [
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/169826/15/1311/287251/5ff5fb66E0d9e76db/b59236931dc5db32.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/169483/16/1309/300119/5ff5fb66E81eece4e/024a265aa6f3b6ad.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/171496/17/1352/290656/5ff5fb66E9b40bbde/6439c445b5a7e562.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/157928/8/2028/287304/5ff5fb66E5fbba832/c1d026acacfbc25a.jpg",
                        ],
                        videoUrl: 'https://jvod.300hu.com/vod/product/300da0a1-61fd-4377-b3fd-672f65d9e8e3/395e0ae43c934494a6c69b8651821ba6.mp4?source=2&h265=h265/18799/de87578da42f4927b2c437ba027129fa.mp4'
                    }
                },
                {
                    userInfo: {
                        username: 'Bang',
                        avatarUrl: 'https://storage.360buyimg.com/i.imageUpload/6a645f3535613334376531626163373731363139323534383738303830_sma.jpg'
                    },
                    rate: 1,
                    date: '2021-09-03 10:03',
                    likes: 198,
                    comments: 3889,
                    content: {
                        text: '可以拿来玩2077吗',
                        imgUrlList: [
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/144292/18/14749/502345/5fb44df9Efaaf1eed/560a23516bd2e4ca.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/147093/9/14727/537733/5fb44df9E052b7d86/86c2388576350caf.jpg",
                        ],
                        videoUrl: 'https://jvod.300hu.com/vod/product/300da0a1-61fd-4377-b3fd-672f65d9e8e3/395e0ae43c934494a6c69b8651821ba6.mp4?source=2&h265=h265/18799/de87578da42f4927b2c437ba027129fa.mp4'
                    }
                },
                {
                    userInfo: {
                        username: 'Bangkk',
                        avatarUrl: 'https://storage.360buyimg.com/i.imageUpload/cdf5d3f1b8bb31343030393539373830393138_sma.jpg'
                    },
                    rate: 2.5,
                    date: '2021-08-08 22:43',
                    likes: 198,
                    comments: 3889,
                    content: {
                        text: '护孩子的眼睛，苹果的质量很好。苹果手机屏幕很清晰，夜晚拍摄效果也很赞。外观非常漂亮，颜值很高，屏幕也很大气，超大屏，手机反应速度特别快。苹果外观来看辨识度也很高，屏幕光鲜亮丽，通透不失温润。双扬声器立体感非常出色，声音饱满，还原度逼真，非常不错的新颖设计。拍照效果绝了，像素高超广角，自动对焦，响应灵敏度顶配。苹果手机不仅硬件高精尖，系统优化也非常完美，苹果手机用来打游戏，也非常的流畅，苹果自带一些小程序也非常好用。最爱苹果产品了，以后还会继续买。',
                        imgUrlList: [
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/132503/38/15662/75544/5facb861E98e7eae8/ef86ac7c53a4d83b.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/142519/6/14191/73416/5facb861E84655dc9/ef7b7cf16bebf0fb.jpg",
                            "https://img30.360buyimg.com/shaidan/s616x405_jfs/t1/124957/10/18238/51094/5facb861E4923f622/4c822c25f2930bc8.jpg",
                        ],
                        videoUrl: 'https://jvod.300hu.com/vod/product/300da0a1-61fd-4377-b3fd-672f65d9e8e3/395e0ae43c934494a6c69b8651821ba6.mp4?source=2&h265=h265/18799/de87578da42f4927b2c437ba027129fa.mp4'
                    }
                },
            ]
        })
    },
}
